from ddt import ddt,data,unpack
import  unittest

# Data_test=({'name':"小明"} , {'address':"深圳南山"})
@ddt
class Test(unittest.TestCase):
    def setUp(self):
        print("====Start====")
    def tearDown(self):
        print("====end====")
    
    @data((3, 2), (4, 3), (5, 3))
    @unpack
    def test001(self, a, b):
        print("a =",a,"b =",b)

    @data(["This","is","ddt","test",123],
          ["there","for","test","case",456])
    @unpack
    def test_01(self,a,b,c,d,e):
        print(a,b,c,d,e)

    @unpack
    @data({'first': 1, 'second': 3, 'third': 2},
          {'first': 4, 'second': 5, 'third': 6})
    def test003(self, first, second, third):
        print("first =" , first ,
              "second =" , second,
              "third =" , third)
 
if __name__ == "__main__":
    unittest.main()